package com.charles.seckillData.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Charles-H
 * 
 * 客户表 (用于登录平台)
 */
public class SysUser implements Serializable {
    
    private static final long serialVersionUID = 1L;

    /**
     * 客户ID (自增)
     */
    private Long user_id;

    /**
     * 权限ID
     */
    private Integer role_id;

    /**
     * 客户名称
     */
    private String user_name;

    /**
     * 身份证号码
     */
    private String user_card;

    /**
     * 密码
     */
    private String password;
    
    /**
     * 客户年龄
     */
    private Integer age;

    /**
     * 客户性别 (0:男、1:女、2:未知。默认:2)
     */
    private String sex;

    /**
     * 登录ip
     */
    private String login_ip;

    /**
     * 登录时间
     */
    private Date login_time;

    /**
     * 创建时间
     */
    private Date create_time;

    /**
     * 更新时间
     */
    private Date update_time;

    public SysUser() {
    }
    
    public SysUser(Long user_id, Integer role_id, String user_name, String user_card, String password, BigDecimal user_balance, Integer age, String sex, String login_ip, Date login_time, Date create_time, Date update_time) {
        this.user_id = user_id;
        this.role_id = role_id;
        this.user_name = user_name;
        this.user_card = user_card;
        this.password = password;
        this.age = age;
        this.sex = sex;
        this.login_ip = login_ip;
        this.login_time = login_time;
        this.create_time = create_time;
        this.update_time = update_time;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_card() {
        return user_card;
    }

    public void setUser_card(String user_card) {
        this.user_card = user_card;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getLogin_ip() {
        return login_ip;
    }

    public void setLogin_ip(String login_ip) {
        this.login_ip = login_ip;
    }

    public Date getLogin_time() {
        return login_time;
    }

    public void setLogin_time(Date login_time) {
        this.login_time = login_time;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "SysUser{" +
                "user_id='" + user_id + '\'' +
                ", role_id='" + role_id + '\'' +
                ", user_name='" + user_name + '\'' +
                ", user_card='" + user_card + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", login_ip='" + login_ip + '\'' +
                ", login_time=" + login_time +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
